37 #include "shell_config.h"
44 uint8_t (*sh_getc)(void);
45 void (*sh_putc)(uint8_t ch);
48 #ifdef SHELL_CONFIG_USE_STDIO
49 #define shell_printf(fmt,args...) printf (fmt ,##args)
57 int (*cmd)(
int argc,
char *
const argv[]);
60 int (*complete)(
int argc,
char *
const argv[],
char last_char,
int maxv,
char *cmdv[]);
uint8_t shell_unregister_function(char *name)
unregister function
Definition: shell.c:288
void shell_beep(void)
beep consult
Definition: shell.c:225
char ** shell_get_hist_data_list(uint8_t *num, uint8_t *cur_index)
uint8_t maxargs
Definition: shell.h:55
char * help
Definition: shell.h:59
Access command structure.
Definition: cmd_handle.h:39
uint8_t shell_io_install(shell_io_install_t *IOInstallStruct)
install shell io function.
Definition: shell.c:204
int shell_printf(const char *format,...)
use vsprintf for format.
Definition: shell.c:188
uint8_t repeatable
Definition: shell.h:56
void shell_main_loop(char *prompt)
Definition: shell.c:797
uint8_t shell_register_function(const cmd_tbl_t *pAddress)
register a user function
Definition: shell.c:250
static sai_data_format_t * format
Definition: modulator.c:60
void shell_register_function_array(const cmd_tbl_t *pAddress, uint8_t num)
register function array
Definition: shell.c:276
command_ret_t
Definition: shell.h:63
const cmd_tbl_t * shell_find_command(const char *cmd)
find command form command struct's name
Definition: shell.c:772
char * usage
Definition: shell.h:58
const cmd_tbl_t ** shell_get_cmd_tbl(void)
get global cmdstruct table address
Definition: shell.c:232